
var CollectionModel = new Class({
  getColumns: function() {
    return [
      { name:'Col1', options:0 },
      { name:'Col2', options:0 },
      { name:'Col3', options:0, tag:1 }
    ];
  },
  getTag: function(id) {
    return [{name: 'A', parent:0},{name: 'B', parent:1},{name: 'C', parent:1}];
  },
  /* option = { sort: [ col2, col1 ], groupby: [col3] } */
  /* section = [ a tag value for each group by ] */
  getData: function(options, section) {
    return { inner: [['a','b','c'],['c','d','e']], sections: [ 2,5,1 ] };
  }

/*
  event: on tag change, on data change
 */
});

